﻿package pk;


import java.util.Scanner;
public class TextHuiyuan {
 public static void main(String[]args){
 Huiyuan hui = new Huiyuan();
 Scanner input = new Scanner(System.in);
 System.out.println("***欢迎进入注册系统***");
 System.out.println("请输入用户名：");
 String name = input.next();
 System.out.println("请输入密码：");
 String pwd1 = input.next();
 System.out.println("请再次输入密码：");
 String pwd2 = input.next();
 boolean flag;
 if(flag = true){
 hui.verify(name, pwd1, pwd2);

 }else{
 do{
 if(name.length()<3&&pwd1.length()<6){
 System.out.println("用户名不能小于3位，密码长度不能小于6位！"); }
 else if(name.length()<3){
 System.out.println("用户名不能小于3位！");
 }else if(pwd1.length()<6){
 System.out.println("密码长度不能小于6位！");
 }else if(!pwd1.equals(pwd2)){
 System.out.println("两次密码输入不一致！");
 }

 }while(flag = false);
 }

 } }